add margin to scanned figures