BUGFIX: check image size before uploading an avatar/background