Apply automator action to original instead of copy
Ok, I find out a way to do it with variables.
Basically I set a new variable before the duplicate, duplicate the file, get the previously set variable, and then scale the image.