1. An apparatus comprising: an image sensor, an optical arrangement comprising at least one adjustable focusing element, wherein the adjustable focusing element is configured to alternate between a first focus distance and a second focus distance as an image is captured by the image sensor, and wherein the image captured by the image sensor comprises a plurality of regions where the regions have different focus distances, wherein the apparatus is further configured to obtain at least one focused image from a subset of the plurality of regions of the image captured by the image sensor; at least one processor; and at least one memory including computer program code the at least one memory and the computer program code configured to, with the at least one processor, cause the apparatus to perform at least the following: identify a subset of the plurality of regions of the image captured by the image sensor where each of the regions in the identified subset have the same focus distance; and obtain a focused image by rescaling the identified subset of regions of the image captured by the image sensor.