ADDED comments and UPDATED depth_of_field to consider world_size