Clean up image type