Added base structure to work with image