FIXED: Added getTemplates method to model
FIXED: Save custom marker image and parameters
FIXED: Set form data first in return function

The fitBounds method sometimes throws an error, so it is important to
set the form field values first.