No there is not an issue if you know how it works. I beleive Michael explained to you how this works. Yes there is only one photo on disk but if you upload to multiple cats each photo is treated like an individual photo.
Your only issue here is you had problems trying to alter our working code which does not have the issue above. It is when you altered the code you had a problem.