fixed some problems with image reference