cc. Processing.js Helper. OpenProcessing.org. Overlay the two images on top of each other and show and hide them instead of doing a replace. Wait for Safari 8 (or whatever the next version is) and just forget about it.If you have a responsive design and resize the page then the images fix themselves.