Sorry for the delay in getting back to you.
The duplicate transaction could be as a result of someone viewing the attachment first in the Lightbox, and then clicking the image afterwards.
To my knowledge there is no way to limit the type of attachment extension to charge for at this time, sorry.