Abstract dash n to downloadimage method