Fixed image scaling bug that was recently introduced.