Made getProfileImage and setProfileImage generic

Since android does not have the BufferedImage class, platforms are required to provide the class
to use and provide ways to get, set and write an image. 2 basic Java classes has been provided to cover
99% of cases.