update image handling; filter for image file types