Added return statement to image assignment operator