Add debug statements and image options
Add debug statements