Corrections for reduireImage function