Methods and systems for image processing