updated to accept local file path instead of just main bundle's file name