Added size savings to JavaScript image upload post