Bug fix for images