improved image and audio file type restrictions