implemented resizing with padding in a specific color