added class to handle maps as images