Python image registration attempt