Fixed image size issue and added guide for debugging.