adding some bound checking on Lat/Long values and updating emagebuilder to handle it correctly