Don't draw images outside of canvas
Also update libraries