fixing image dimensions