added the possibility of storing external images in the media library