Updated avatar handler to use new WP_Image_Editor API.
Minimum system requirement is WordPress 3.5 now.