misc for the calculating the image bbox
Merge remote-tracking branch 'origin/master'