fix a bug in image source