There are some issues to solve to make this work correctly. Specifically these are:
Find a place for permanent storing.
Preserve information about original image and make them easily accessible without touching the original.
Provide the ability to handle different thumbnail sizes.
Take care of thumbnail generation failures.
Find a way to access thumbnails concurrently with different programs.