Altering the resize so that it works with alpha images