Following is the class file I'm using for Image compression and it's working very well but the problem is when I use low resolution images the output Image drawn with black background. Can anybody tell me where I need to make changes?Following is the class file I'm using for Image