I mean my script will work but if you are reading comics then there is a better way.
Check out Canti
http://www.bitcake.com/?page=project_canti
It can automatically convert/organize comics/manga perfectly for the Kindle and it will remove white space in between panels to make everything even bigger.
You can just give it a zipped series and it will automatically convert it to SeriesName_v##
It has a lot more features.
Change the settings to make it use .cbz instead of pdf and just copy the .cbz on and open it and hit F (you may need to hit it twice, well I always have to hit it twice) and it will full screen the page (only for the image viewer)
It's also not a bad idea to disable dithering by hitting the menu button as Canti already dithers the images to the Kindle's palette.