adds imagine library to validate image sizes