added dependency check for ImageAlpha and ImageOptim