Added a factories.js file to hold factory functions to create shapes, only
Rect as of now

Set up a timer function to render the image every 50 ms