fixed bug with image not found exception