Change image type to own underlying raw buffer.