Add imagemagick dependency for build stage