fixed image size logic