Fixed a problem with the image creation in latest Chrome versions.

#changelog closes #226