fixed bugs with images and added simple ui