Added additional file type and size checking to image upload feature