added function to reload images at size breaks, cleaned code, eliminated markers.js