if you can't flag them with "no download" because they are in real folder, then you can use a short script, but this requires you to be using version 2.3
press ALT+F6 and add this little script
[+download]
{.disconnection reason|Forbidden file|if={.match|*.jpg.}.}