not working (img tag):

not working (div with background-image):

working: