Support alpha transparency in _resizePhp(). Closes #29