Timob 12583: Android: Maps V2 module: Adding custom views in the pin

https://jira.appcelerator.org/browse/TIMOB-12583
This PR fixes a bug in the toImage() method. Test case in JIRA.