check image type when upload