Added support for setting marker image dimensions. Closes #1807. Closes #1817.