Moved image processing to the client