[Bug fix]Avoid black region in rotation

When an input image is rotated in this program, black region appears
near edges of generated image.
I fix to avoid this region.  This fixation only works when input format
is an annotation text file.