Fixing some image related stuff.