minor code additions and deletions
modified the image tile width for speeding  up things