fixes problems with side steps of ImageBitmap