Removed debug return statement. The script was stopping before saving the image