Fix bug and Create Test for Download image