remove padding from figure and add to contained image