Imported java packages to support images and added variables to support images