Re: Limit access to the full size image
True. However the intent of the modification is to block the "normal" user that's not supposed to have access. Given that, it would seem that this modification just needs to be tweaked as bit.
The reality is that if you want to block general access by a determined individual the images should be stored outside the root folder so that only the application can have access to them.