serializing image sources