update preg_match for file upload

preg_match was catching non-image files as images sometimes