Beginning of imagelibrary to avoid unneccessary image operations