In terms of image processing, encryption plays the main role in the field of image transmission. Using one algorithm of deep learning (DL), such as neural network backpropagation, increases the performance of encryption by learning the parameters and weights derived from the image itself. The use of more than one layer in the neural network improves the performance of the algorithm. Also, in the process of image encryption, randomness is an important component, especially when used by smart learning methods. Deep neural networks are related to pixels used to manipulate position and value according to the predicted new value given from a variable neural system. It also includes messy encrypted images used via applying randomness and increasing the key space in addition to using the logistic and Henon map for complexity. The main goal of any encryption method is to increase the complexity of the encrypted image to be difficult or impossible to decrypt the image without the proposed key. One of the important measurements for image encryption is the histogram and how it can be uniformed by the proposed method. Variables of randomness are used as features for the deep learning system, with feedback during iteration. An ideal image processing encryption yields high messy images by keeping the quality. Experimental results showed the backpropagation algorithm achieved better results than other algorithms.