Overrding the atlas image if given
Added error handler for atlas
Added error handler for atlas