Fixed bug in input_store overwriting images.