Adds image file extensions to attachments white list