Adding pad-resize-to-fill function