Fixed safari bug with invisible images, closes #9