fixing error with images