finished ImageHandler class