renamed image to Image and made minor change to implementation