Selection of gamma events from IACT images with deep learning methods