Using photoshop to extract images