Copy colored image into the HDF5 file