image padding adjustment to match the width