added more functionality to tile
made crop object reusable here