in reply to Random Image Generator
Call me crazy but why not just print out
<img src="/path/to/$file"> [download]
($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss') =~y~b-v~a-z~s; print [download]