Added scaling of images depending on cell size