tested and fixed image upload check size