yes it can quite easily. grab this copy of the gallery_setup.rpy and use it
https://drive.google.com/file/d/16xcCir-QJYiJ8L99DSYtJxIspA0e1-M7/view?usp=shari...
if you have already edited your gallery_setup.rpy be sure to copy over the changes you have made to this one before overwriting yours.
I chose a separate folder for the individual lock images, but you can combine them with the thumbnails (or anywhere really) just be sure to point to them correctly in the gallery_setup.rpy file