Fixing behaviour for non-transparent padding (see #50)