moved image loading to after map loading