Added image selection for encoding.