You need to increase the padding value when you render to texture so that when the image is scaled up/down the black background doesnt seep in.