Ensure images are processed correctly