Input file and crop image for Firefox