improve pages image upload