added filesize limit to upload, removed frontend image resize code