Modify loss view functions

The create_loss_view function does not produce separate views depending on the the entity type, thus when plotting the view, a building may be hiding under its tile. This is ok for one investigation, but not useful to produce figures. Thus this functions needs to expand to produce different views depending the entity type (either building or tile).