Development of the Image to Spike Conversion Algorithm for the Deep Neural Networks