Implemented thumb generation based on gallery settings