Refactor and finish basic operations with stock photo