Adds missing imports
Organizes imports
Renames centre -> center

What are you, French?
PEP8
Fixes bogus line

I don't see any reason the right line on the resized image should be
set...
Fixes black being 1 when it is 255