Updated Image Handling on the Client so that it doesn't have to save to disk. Also made it a Util function