passed in image bug fixed