BUG deletion of a paddedImage

Changed image generate method regex.

Also: Some formatting.