fix for reducing images