finished adding functionality for choosing images