added complete listener to images and let the picture element fire a complete event when the image is loaded