added functions for image picking