Bug fix: set sources to dirty when resizing (i.e. when image or video finally loads initial data)