Fixed a bug resulting in blank blocks along image edges.