fixes #29; adds padding to images