Improved logic of map resource copying, including custom marker image.