updated to handle a circle image flag
update to handle resizing