removed wrong setting of image when using string paths