In this paper we introduce an imaging system based on a reflective phase-only spatial light modulator (SLM) in order to perform imaging with improved geometric resolution. By using the SLM, we combine the realization of two main abilities: a lens with a tunable focus and a phase function that, after proper free-space propagation, is projected as an amplitude distribution on top of the inspected object. The first ability is related to the realization of a lens function combined with a tunable prism that yields a microscanning of the inspected object. This by itself improves the spatial sampling density. The second ability is related to a projection of a phase function that is computed using an iterative beam-shaping Gerchberg-Saxton algorithm. After the free-space propagation from the SLM toward the inspected object, an amplitude pattern is generated on top of the object. This projected pattern and a set of lowresolution images with relative shift are interlaced and, after applying the proper regularization method, a geometrically superresolved image is reconstructed.