Issue #2446343 by michaelfavia, Tommy Cox, guschilds, aguilarm: Use Drupal's filesystem wrappers when creating thumbnails.