Updated initialization of image in constructor