Assigning different physical groups to different color in gmsh and mark them as different material in fenics

The problem is that the msh file does not store any of the information regarding your image, and thus you have lost all the information you started with.

You could do something like:

with some slight modifications.