Use internal image IDs for temporary images