Designing a retinal prosthesis that provides functional vision to users is a challenging problem due to the large design parameter space and the spatial distortions experienced by users. We describe an environment to simulate prosthetic vision in normal-sighted individuals which can be used to obtain information about the designing and tuning of a prosthesis. The main focus of our research is to incorporate spatial distortions into the simulation environment so that distortions experienced by prosthesis users can be estimated accurately. When distortions are estimated accurately, we can generate images that are compensated for distortions when they pass through the prosthesis. We describe an efficient algorithm, called the image distortion estimation algorithm, to estimate the distortion parameters of a given image based on the pullback operation. The procedure uses a large set of images with known distortion parameters to estimate the unknown distortion parameters of a given image. We also describe a content-based image indexing method to perform a quick search for images that may be close to the image for which distortion must be estimated. Our procedure was incorporated into the simulation of prosthetic vision environment and was used to estimate the distortion parameters of a number of images with different amounts of rotation distortion in one or more of X, Y, and Z axes. The experimental results showed that the image distortion estimation procedure was effective in estimating the distortion parameters of various images and the procedure converged in few iterations for most images considered.