Resolved some problems with images