Added logic for stock photo allowance

https://appirio.my.salesforce.com/a3v50000000ICof