Initial image processing