Added support for JPG images and setup the structure to allow for other formats later. Made changes to Anchor positioning (not fully completed yet).