override img height to auto to preserve the aspect ratio