Put image scaler in a utilities class