Prepare image for halftoneing