Added image resize method and mouseClick method