To protect the images and provide a more secure cipher image, DNA encoding is crucial in image encryption. Applying a single, easily detectable coding rule to the image during DNA encoding has no impact on the encryption model's security level. Therefore, using various coding rules while applying encryption to the image, dynamic DNA-coding techniques have emerged to strengthen and improve the encryption of the image and its security. This study integrates a dynamic DNA-coding method with an encryption model. The model is applied to gray-scale images, where using a predetermined coding rule, every two bits are DNA-encoded in the image. The proposed model generates the key by sending the image and its metadata to hash functions. Following that, the hyperchaotic system constructs three chaotic sequences using the key, and the Lorenz–Liu chaotic system generates a sequence of coding rules. Then, the image is passed to Arnold Transform, where the resulted image is diffused by applying five chaotic maps. Last, using the coding rules, it is DNA-encoded, provided with the chaotic sequences to DNA, and DNA-decoded. Twelve metrics were used to assess the proposed model on ten widely used images. Results show a promising improvement in performance, since it enhanced the security of the model.