BUG: fixed critical bug in calculatePicture() if we build near scene border