added gm and imagemagick support for profile pictures