Add lib with main functionality + add support of image sizes