Added method to detect if commitedLayer contains transparency and check
for transparency when resizing the canvas so it won't set the background
to white.