Shrinking images to fit in container