What about doing this part only in setup.rb, and only if there are images to upload? (I'm okay with a "does it matter that much?" answer ;-))