Take shake into account when rendering background