Fix black background resizing issue