Only resize images in D3D when really needed
Fixed some memory leaks from Bitmaps