PHP Image File Type Converter - Convert from one type to another