Changed contentMode of the attachmentImageView to UIViewContentModeScaleAspectFill